package com.baomibing.flow.mapper;

import com.baomibing.flow.entity.SysFlowHistoryTask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysFlowHistoryTaskMapper extends BaseMapper<SysFlowHistoryTask> {

    List<SysFlowHistoryTask> listLatestHistoryTaskByInstance(@Param("instanceId") String instanceId);

    Integer maxStepByInstance(@Param("instanceId") String instanceId);
}
